# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=faultstat
pkgver=0.01.11
pkgrel=0
pkgdesc="page fault monitoring tool"
url="https://github.com/ColinIanKing/faultstat"
arch="all"
license="GPL-2.0-or-later"
makedepends="ncurses-dev"
options="!check" # pkg doesn't have tests
subpackages="$pkgname-doc $pkgname-bash-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/ColinIanKing/faultstat/archive/V$pkgver.tar.gz"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install

	install -Dm644 bash-completion/* -t "$pkgdir"/usr/share/bash-completion/completions
}

sha512sums="
5fcc9a58e5b9532156254c2721ac104ad1bbb0bc77e3d5fadde25e66c042be2441d907d274e2501aa5c43365269016fa962345318edf4266b9a5f632102e8bf1  faultstat-0.01.11.tar.gz
"
